import Mock from 'mockjs'
const homemock = Mock.mock({
  'notices|1-10': [
    {
      'id|+1': 1,
      title: '@ctitle()',
      content:'@csentence(5, 100)',
      startTime: '@datetime()',
      endTime: '@datetime()'
    }
  ]
})
const trademock = Mock.mock({
  'statistics|4-8': [ 
    {
      'id|+1': 1,
      title: '@ctitle(4)',
      'num|1-100': 1,
      'increment|-100-100':1,
      'increaseRatio|-90-90.1-2': 1
    }
  ],
  'tlab|7-20': [
    {
      'id|+1': 1,
      logo:'@image(186X171)',
      participantName: '@ctitle(5,10)',
      'price':'￥@natural(0,900)',
      'totleKWH':'@float(0.01,999,0,5)',
      'startTime': '@datetime(yyyy-MM-dd  HH:mm)',
      'endTime': '@datetime(yyyy-MM-dd  HH:mm)',
      'soldtype|1':[1,2] //1:卖方，2：买方
    }
  ],
  'filteritems|2-7': [
    {
      'key|+1': 1,
      name: '@ctitle(2,5)'
    }
  ]
})
export { homemock,trademock }
